<?php
namespace app\admin\controller;
use think\Controller;
use think\Request;

class Book extends Controller{
    public function list(){
        $book = model("book");
        $data = $book::where(true)->select();
        $this->assign("books",$data);
        return $this->fetch();
    }

    public function add(){
        return $this->fetch();
    }

    public function add_book(Request $request){
        dump($request->param());
        dump($request->post());
//        return $this->fetch();
    }

}